home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
c_spec
/
execute
/
cptolow.c
< prev
next >
Wrap
Text File
|
1986-02-20
|
308b
|
13 lines
char *cptolower( dest, src )
register char *dest, *src;
{
/* Copy src to dest, mapping all upper case letters to lower
* case. src and dest may be the same.
*/
for(; *src ; src++ )
*dest++ = ('A' <= *src && *src <= 'Z')
? *src + ('a'-'A') : *src ;
*dest = '\0' ;
return dest ;
}